query getBranchRules($projectPath: ID!) {
  project(fullPath: $projectPath) {
    id
    branchRules {
      nodes {
        name
        isDefault
        matchingBranchesCount
        branchProtection {
          allowForcePush
          mergeAccessLevels {
            edges {
              node {
                accessLevel
                accessLevelDescription
              }
            }
          }
          pushAccessLevels {
            edges {
              node {
                accessLevel
                accessLevelDescription
              }
            }
          }
        }
      }
    }
  }
}
